conda create -n yolov7 python==3.8
conda activate yolov7
pip install -r requirements.txt
python detect.py --weights yolov7.pt --conf 0.25 --img-size 640 --source inference\images\horses.jpg
train: .\data\images\train\
val: .\data\images\val\
test:
# number of classes
nc: 4
# class names
names: ['scratch','paint_peel','rust','rivet_damage']
pip install wandb
python train.py --weights weights\yolov7.pt --cfg cfg\training\yolov7_custom.yaml --data data\custom.yaml --hyp .\data\hyp.scratch.custom.yaml --device cpu --batch-size 2 --epoch 300 --name yolov7-it30